package tech.yixiyun.framework.kuafu.boot.server.tomcat;


import tech.yixiyun.framework.kuafu.context.ApplicationContext;

import javax.servlet.ServletContainerInitializer;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import java.util.Set;

/**
 * jar包中的servlet组件，想让tomcat能加载到，需要这个类
 */
public class TomcatContainerInitializer implements ServletContainerInitializer {
    @Override
    public void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException {
        ApplicationContext.init(ctx);
    }
}
